package com.example.j2025_11_10.service;

import com.example.j2025_11_10.Dao.BookDao;
import com.example.j2025_11_10.Model.BookInfo;

import java.util.List;
//业务逻辑层
public class BookService {
    public List<BookInfo> getList() {
        BookDao bookDao = new BookDao();
        List<BookInfo> list = bookDao.mockBook();
        for (BookInfo list1 : list) {
            if (list1.getStatus() == 1) {
                list1.setStatusCN("可借阅");
            } else {
                list1.setStatusCN("不可借阅");
            }
        }
        return list;
    }
}
